package com.example.property.api

import com.example.network.CommonInterceptorApiServer
import com.example.network.HttpInterceptorType
import com.example.network.HttpManager
import com.example.network.SignInterceptorApiServer
import com.example.network.TokenInterceptorApiServer
import com.example.network.UploadInterceptorApiServer
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
object CarApplyApiModule {

    @Provides
    @Singleton
    fun getTokenApiServer():PropertyApiServer{
        return HttpManager.createApi(PropertyApiServer::class.java,HttpInterceptorType.TOKEN)
    }
//    @UploadInterceptorApiServer
//    @Provides
//    @Singleton
//    fun getUploadApiServer():PropertyApiServer{
//        return HttpManager.createApi(PropertyApiServer::class.java,HttpInterceptorType.UPLOAD)
//    }
//
//    @SignInterceptorApiServer
//    @Provides
//    @Singleton
//    fun getSignApiServer():PropertyApiServer{
//        return HttpManager.createApi(PropertyApiServer::class.java,HttpInterceptorType.SIGN)
//    }
//    @CommonInterceptorApiServer
//    @Provides
//    @Singleton
//    fun getCommonApiServer():PropertyApiServer{
//        return HttpManager.createApi(PropertyApiServer::class.java,HttpInterceptorType.INTERFACE)
//    }

}